package ly.gupao.edu.threaddemo.syn.objectClass;

public class Test {

    public static void main(String[] args) {

        SynchronizedTest synchronizedTest = new SynchronizedTest();
        SynchronizedTest synchronizedTestB = new SynchronizedTest();

        ThreadA threadA = new ThreadA(synchronizedTest);
        ThreadB threadB = new ThreadB(synchronizedTestB);
        ThreadC threadC = new ThreadC(synchronizedTest);

        threadA.setName("threaddemo A");
        threadB.setName("threaddemo B");
        threadC.setName("threaddemo C");

        threadA.start();
        threadB.start();
//        threadC.start();
    }

}
